package com.zhaotianhao.service.impl;

import com.zhaotianhao.mapper.MoneyFlowMapper;
import com.zhaotianhao.pojo.MoneyFlow;
import com.zhaotianhao.service.MoneyFlowService;
import org.apache.dubbo.config.annotation.DubboService;
import org.springframework.beans.factory.annotation.Autowired;

/**
 * 资金流水(MoneyFlow)表服务实现类
 *
 * @author Z-7
 * @since 2022-03-07 15:21:59
 */
@DubboService
public class MoneyFlowServiceImpl implements MoneyFlowService {
    @Autowired
    private MoneyFlowMapper moneyFlowMapper;

    /**
     * 新增数据
     *
     * @param moneyFlow 实例对象
     * @return 影响行数
     */
    @Override
    public int insert(MoneyFlow moneyFlow) {
        return this.moneyFlowMapper.insert(moneyFlow);
    }
}
